package mysql

import "gorm.io/gorm"

type Good struct {
	gorm.Model
	Image  string `gorm:"type:varchar(255);not null;comment:'图片'"`
	Name   string `gorm:"type:varchar(20);not null;comment:'商品名称'"`
	Price  int    `gorm:"type:int(10);not null;comment:'商品价格'"`
	Num    int    `gorm:"type:int(10);not null;comment:'商品数量'"`
	Intro  string `gorm:"type:varchar(100);not null;comment:'商品描述'"`
	UserId int    `gorm:"type:int(10);not null;comment:'用户Id'"`
}
